<?php
/**
* @file PortaMxLoader.php
* The main loader for PortaMx.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/

if(!defined('SMF'))
	die('This Portamx file can\'t be run without SMF');

if(empty($modSettings['pmxportal_disabled']))
{
	// set versions info
	$modSettings['portamx_version'] = '1.0 RC4';

	require_once(str_replace('PortaMxLoader.php', '', __FILE__) .'PortaMx.php');
	require_once(str_replace('PortaMxLoader.php', '', __FILE__) .'PortaMxIntegrate.php');
	require_once(str_replace('PortaMxLoader.php', '', __FILE__) .'SubsCache.php');

	if(empty($modSettings['pmxsef_disabled']) && isset($modSettings['integrate_pre_load']) && strpos($modSettings['integrate_pre_load'], 'pmxsef_convertSEF') !== false)
		require_once(str_replace('PortaMxLoader.php', '', __FILE__) .'PortaMxSEF.php');
}
?>